package com.woniu.learnhelloworld.entity;

import javax.validation.constraints.Min;

/**
 * created  by woniu201
 * created in 2018/3/22
 */
public class User {
    private String name;
    @Min(value = 18, message = "未成年人禁止入内")
    private int    age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
